package mx.com.sinformex.chat.core;

import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Oscar Ivan Hernandez Ventura [ oscar at sinformex dot com dot mx]
 *
 * @version $ Id : Init.java , v 1.0 Aug 12, 2009 angellore $
 */
public class Init {

	private Map<String, String> prefs ;
	private Log log = LogFactory.getLog(getClass()); 
	private ApplicationContext ctx = null;
	private final String SPRING_CONTEXT_FILE = "/mx/com/sinformex/chat/core/simbel.xml";
	private Manager manager;
	
	public Init() {
		log.info("Loading SimbelChat Core ...");
		
		ctx = new ClassPathXmlApplicationContext(SPRING_CONTEXT_FILE);
		manager = new Manager(ctx);
		manager.init();
		
	}
	
	public static void main(String[] args) {
		new Init();
	}

}
